﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    /// <summary>
    /// 实体类TB_PrintList 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_PrintList : Entity
    {
        public TB_PrintList() : base("TB_PrintList") { _PrintListNO = Guid.NewGuid().ToString(); }

        #region Model
        private string _PrintListNO;
        private string _SignUpID;
        private DateTime? _CreateTime;
        private string _ComputerName;
        private string _IsPrint;
        /// <summary>
        /// 
        /// </summary>
        public string PrintListNO
        {
            get { return _PrintListNO; }
            set
            {
                this.OnPropertyValueChange(_.PrintListNO, _PrintListNO, value);
                this._PrintListNO = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string SignUpID
        {
            get { return _SignUpID; }
            set
            {
                this.OnPropertyValueChange(_.SignUpID, _SignUpID, value);
                this._SignUpID = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? CreateTime
        {
            get { return _CreateTime; }
            set
            {
                this.OnPropertyValueChange(_.CreateTime, _CreateTime, value);
                this._CreateTime = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ComputerName
        {
            get { return _ComputerName; }
            set
            {
                this.OnPropertyValueChange(_.ComputerName, _ComputerName, value);
                this._ComputerName = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public string IsPrint
        {
            get { return _IsPrint; }
            set
            {
                this.OnPropertyValueChange(_.IsPrint, _IsPrint, value);
                this._IsPrint = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.PrintListNO,
				_.SignUpID,
				_.CreateTime,
				_.ComputerName,
				_.IsPrint};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._PrintListNO,
				this._SignUpID,
				this._CreateTime,
				this._ComputerName,
				this._IsPrint};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._PrintListNO = DataUtils.ConvertValue<string>(reader["PrintListNO"]);
            this._SignUpID = DataUtils.ConvertValue<string>(reader["SignUpID"]);
            this._CreateTime = DataUtils.ConvertValue<DateTime?>(reader["CreateTime"]);
            this._ComputerName = DataUtils.ConvertValue<string>(reader["ComputerName"]);
            this._IsPrint = DataUtils.ConvertValue<string>(reader["IsPrint"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._PrintListNO = DataUtils.ConvertValue<string>(row["PrintListNO"]);
            this._SignUpID = DataUtils.ConvertValue<string>(row["SignUpID"]);
            this._CreateTime = DataUtils.ConvertValue<DateTime?>(row["CreateTime"]);
            this._ComputerName = DataUtils.ConvertValue<string>(row["ComputerName"]);
            this._IsPrint = DataUtils.ConvertValue<string>(row["IsPrint"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_PrintList");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field PrintListNO = new Field("PrintListNO", "TB_PrintList", "PrintListNO");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field SignUpID = new Field("SignUpID", "TB_PrintList", "SignUpID");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field CreateTime = new Field("CreateTime", "TB_PrintList", "CreateTime");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field ComputerName = new Field("ComputerName", "TB_PrintList", "ComputerName");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field IsPrint = new Field("IsPrint", "TB_PrintList", "IsPrint");
        }
        #endregion


    }
}

